@import "../../../app.less";

.myApproval {
    .van-tabs__wrap {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-color: @color-border-base;
    }

    .all {
        padding-top: 24rpx;
    }

    .none{
        padding-bottom: calc((constant(safe-area-inset-bottom)) + 150rpx);
        padding-bottom: calc(env(safe-area-inset-bottom) + 150rpx);
    }

    .tool {
        background: @color-white;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-right: 32rpx;
        box-sizing: border-box;

        van-search {
            width: calc(100% - 136rpx);
        }

        button {
            width: 136rpx;
            line-height: 80rpx;
            color: @color-text-primary;
            font-size: 28rpx;
            background-color: @color-background-regular;
            white-space: nowrap;
            padding: 0;
            border-radius: 8rpx;

            &::after {
                border: none !important;
            }
        }
    }

    .van-search__content {
        background-color: @color-background-regular;
        border-radius: 8px;

        .van-field__control {
            height: 60rpx;
        }

        .van-cell {
            align-items: center;
            font-size: 26rpx;
        }
    }

    .van-ellipsis {
        font-size: 28rpx;
    }

    .van-tab--active .van-ellipsis {
        font-size: 30rpx;
    }

    // .item {
    //     margin-top: 20rpx;
    //     background: @color-white;
    //     padding: 0 32rpx;

    //     .checkbox {
    //         padding: 28rpx 0;
    //         border-bottom-width: 1px;
    //         border-bottom-style: solid;
    //         border-color: @color-border-light;

    //         .van-checkbox__icon {
    //             border-color: @color-checkbox;
    //             border-radius: 2px;
    //         }

    //         view.invoice {
    //             font-size: 28rpx;
    //             color: @color-text-primary;
    //         }
    //     }

    //     .intro {
    //         padding: 36rpx 0;

    //         .company {
    //             font-size: 32rpx;
    //             font-weight: 600;
    //             color: @color-text-primary;
    //         }

    //         .num {
    //             display: flex;
    //             flex-direction: row;
    //             justify-content: space-between;
    //             align-items: center;
    //             margin-top: 28rpx;

    //             .number {
    //                 width: calc(100% - 200rpx);
    //                 word-wrap: break-word;
    //                 word-break: normal;
    //                 color: @color-text-fourthly;
    //                 font-size: 28rpx;
    //                 line-height: 1.5;
    //             }

    //             .figure {
    //                 color: @color-primary;
    //                 font-size: 36rpx;
    //                 font-weight: 600;
    //             }
    //         }
    //     }
    // }

    .li {
        background: @color-white;
        border-radius: 8px;
        padding: 0 30rpx;
        margin-bottom: 20rpx;
    
        .top {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          padding: 20rpx 0;
    
          .person {
            display: flex;
            flex-direction: row;
            align-items: center;
    
            image {
              width: 28rpx;
              height: 28rpx;
              margin-right: 6rpx;
            }
    
            view {
              font-size: 28rpx;
              color: @color-text-primary;
            }
          }
    
          .time {
            color: @color-text-secondary;
            font-size: 26rpx;
          }
        }
    
        .disc {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          padding: 35rpx 0;
    
          .info {
            font-size: 32rpx;
            font-weight: 600;
            color: @color-text-primary;
            line-height: 1.5;
            width: 440rpx;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
          .dept{
            color: @color-text-primary;
            font-size: 28rpx;
            margin-top: 14rpx;
            max-width: 440rpx;
          }
          .dwmc{
            font-size: 30rpx;
          }
          .num {
            color: @color-text-fourthly;
            font-size: 26rpx;
            margin-top: 14rpx;
            max-width: 400rpx;
          }
    
          .figure {
            color: @color-primary;
            font-size: 36rpx;
            font-weight: 600;
          }
        }
      }

    .approve {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc((constant(safe-area-inset-bottom)));
        bottom: calc(env(safe-area-inset-bottom));
        z-index: 100;
        background: @color-white;
        box-shadow: 0 -3rpx 6rpx rgba(0, 0, 0, .06);
        padding: 24rpx 36rpx 24rpx 32rpx;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        .allText{
            color: @color-text-primary;
            font-size: 28rpx;
        }
        .btn {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;

            button {
                width: 200rpx;
                line-height: 80rpx;
                border-radius: 5px;
                font-size: 34rpx;
                color: @color-white;

                &::after {
                    border: none !important;
                }

                &.decline {
                    background: @color-danger;
                    margin-right: 20rpx;
                }

                &.agree {
                    background: @color-success;
                }
            }
        }
    }

    .secondTabs {
        .van-tabs__wrap {
            border: none;
            height: 96rpx;

            .van-tabs__nav {
                width: 390rpx;
                padding-left: 32rpx;
                padding-right: 32rpx;
                padding-top: 24rpx;
            }

            .van-tab {
                width: 114rpx !important;
                line-height: 48rpx;
                background: rgba(125, 138, 159, .06);
                margin-right: 20rpx;
                font-size: 28rpx;
                color: @color-text-fourthly;
                border-radius: 5px;

                &.van-tab--active {

                    background: rgba(0, 65, 196, .06);
                    color: @color-primary;

                    .van-ellipsis {
                        font-size: 28rpx;
                    }
                }

            }

        }

        &.none{
          .van-tabs__wrap{
            .van-tabs__nav {
              width: auto;
            }
            .van-tab{
              width: auto !important;
            }
          }
        }
    }
}